-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RabbitMQ: Specify how to populate messaging.destination.name
#1531
base: main
Are you sure you want to change the base?
RabbitMQ: Specify how to populate messaging.destination.name
#1531
Conversation
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some small suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this text instead be part of rabbitmq yaml for messaging.destination.name
?
Good point, I didn't consider it but maybe it makes sense 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
`messaging.destination.name` SHOULD be set to: | ||
|
||
- **Producers**: `{exchange}:{routing key}` when both values are present and non-empty. | ||
Otherwise: `amq.default` when the default exchange is used and no routing key is provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can there be an {exchange}
but not a {routing key}
, or can there be a {routing key}
but not a {exchange}
? it may be helpful to be explicit about fallback options (if any), in particular, do you drop the :
or not when only one of them is present, here's an example where we cover these fallbacks: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah they can be empty like that AFAIK. I adapted it a bit, hopefully it is clearer now.
Fixes #1529
Changes
Specify in more detail how to populate
messaging.destination.name
for RabbitMQ. I based it on the Default exchange docs. My understanding is that arouting key
is always present, even when using the default exchange (empty in this case). The routing key then is the queue name.For all other cases, I left it as
amq.default
which is what RabbitMQ uses. I saw reference for it for example here: https://www.rabbitmq.com/docs/access-controlMerge requirement checklist
[chore]